<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/jquery-3.7.1.js"></script>
	</head>
	<body>
		<div>1</div>
		<div id="d2">2</div>
		<div class="d3">3</div>
		<div>4</div>

		<script type="text/javascript">
			console.log($("div:first").text());
			console.log($("div").text());//1234 集合调用方法,会对每个元素使用方法
			console.log($("#d2").text())
			console.log($(".d3").text())
			
			console.log($("div").eq(3));
		</script>
	</body>
</html>
